KERN_DIR = /home/huahui/Linux-4.9.88

all:
	make -C $(KERN_DIR) M=`pwd` modules 

clean:
	make -C $(KERN_DIR) M=`pwd` modules clean
	rm -rf modules.order

# 参考内核源码drivers/char/ipmi/Makefile
# 要想把a.c, b.c编译成ab.ko, 可以这样指定:
# ab-y := a.o b.o
# obj-m += ab.o

# led_drv.c board_demo.c 编译成 100ask.ko
#imx6_led-y := led_drv.o board_A_led.o chip_demo_gpio.o
obj-m	+= gpio_key_drv.o
